When the number of workspaces changes, it is possible that one
of the visible (non-active) workspaces is removed, and another
invisible workspace moves in its place.
Make sure that workspaces are shown as necessary in this case.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6519
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2699>
global.window_manager.connectObject('switch-workspace',
this._activeWorkspaceChanged.bind(this), this);
- this._updateVisibility();
}
_getFirstFitAllWorkspaceBox(box, spacing, vertical) {
}
this._updateWorkspacesState();
+ this._updateVisibility();
}
_activeWorkspaceChanged(_wm, _from, _to, _direction) {